package org.harsh.transmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.harsh.transmission.mapper.TransReceiverMapper;
import org.harsh.transmission.domain.TransReceiver;
import org.harsh.transmission.service.ITransReceiverService;
import com.ruoyi.common.core.text.Convert;

/**
 * 消息接收对象Service业务层处理
 * 
 * @author liuhaibo
 * @date 2024-08-25
 */
@Service
public class TransReceiverServiceImpl implements ITransReceiverService 
{
    @Autowired
    private TransReceiverMapper transReceiverMapper;

    /**
     * 查询消息接收对象
     * 
     * @param id 消息接收对象主键
     * @return 消息接收对象
     */
    @Override
    public TransReceiver selectTransReceiverById(Long id)
    {
        return transReceiverMapper.selectTransReceiverById(id);
    }

    /**
     * 查询消息接收对象列表
     * 
     * @param transReceiver 消息接收对象
     * @return 消息接收对象
     */
    @Override
    public List<TransReceiver> selectTransReceiverList(TransReceiver transReceiver)
    {
        return transReceiverMapper.selectTransReceiverList(transReceiver);
    }

    /**
     * 新增消息接收对象
     * 
     * @param transReceiver 消息接收对象
     * @return 结果
     */
    @Override
    public int insertTransReceiver(TransReceiver transReceiver)
    {
        return transReceiverMapper.insertTransReceiver(transReceiver);
    }

    /**
     * 修改消息接收对象
     * 
     * @param transReceiver 消息接收对象
     * @return 结果
     */
    @Override
    public int updateTransReceiver(TransReceiver transReceiver)
    {
        return transReceiverMapper.updateTransReceiver(transReceiver);
    }

    /**
     * 批量删除消息接收对象
     * 
     * @param ids 需要删除的消息接收对象主键
     * @return 结果
     */
    @Override
    public int deleteTransReceiverByIds(String ids)
    {
        return transReceiverMapper.deleteTransReceiverByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除消息接收对象信息
     * 
     * @param id 消息接收对象主键
     * @return 结果
     */
    @Override
    public int deleteTransReceiverById(Long id)
    {
        return transReceiverMapper.deleteTransReceiverById(id);
    }
}
